<?php
/*用户注册类
 * liangxinzhao
 */
class reg_user extends Controller{
    function __construct(){
        parent::__construct();
        
    }
    function index(){
        $this->T->display('user_reg.html');
    }
    
    //新增用户
    function add_new_user(){
        $username = $_POST['user_name'];
        $userpwd = $_POST['user_pwd'];
        $this->db = $this->load->model('User');
        $result = $this->db->userReg($username,$userpwd);
        $this->T->assign('result',$result);
        $this->T->display('user_reg_result.html');
    }
}